#include<windows.h>
#include<iostream>

using namespace std;

int main(){


	
	DWORD targetProcessId = GetCurrentProcessId();
	cin >> targetProcessId;
	HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS,FALSE,targetProcessId);
	
	if(hProcess == NULL){
		cerr << "OpenProcess failed. Error: " << GetLastError() << endl;
		
		return 1;
	}
	
	DWORD64 readData;
	SIZE_T num = 0;
	
	BOOL result = ReadProcessMemory(hProcess,
									(LPCVOID)0x1000000000,
									&readData,
									sizeof(DWORD64),
									&num);
	
	if(!result){
		cerr << "ReadProcessMemory failed. Error: " << GetLastError() << endl; 
	}
	
	cout << readData << endl;
	
	cout << "Over!" << endl;
	
	
	
	
	return 0;
}


